{include file="pub:header"/}
<script type="text/javascript">
$(function(){
	$('.J_tablelist').listTable();
});
function setSort() {
	$('#myform').attr('action', "{:url('sort')}");
	ajaxpost('myform');
}
function setStatus(id, status) {
	if(!id || id.length == 0)return alert("请选择一条记录");

	$('#myform').attr('action', "{:url('state')}");
	$('#state').val(status);
	ajaxpost('myform');
}
function editConfig(id){
  art.dialog.open('{:url('config/edit')}?id='+id,{title:'配置参数编辑',id:'cats',width:750,height:550,lock: true,fixed:true,close:function(){location.reload(true);}});
}
</script>
</head>
<body>

<div class="subnav">
	<div class="content_menu ib_a blue line_x">
		<a class="" href="{:url('cashedit','uid='.$info['id'])}"><em>余额管理</em></a>
		<span>|</span>
		<a class="add" href="{:url('cashuser','uid='.$info['id'])}"><em>余额明细</em></a>
	</div>
</div>

	<div class="pad_lr_10">

		<form action="{:url('cashuser')}" method="get">

			<table width="100%" cellspacing="0" class="search_form">
				<input type="hidden" name="uid" value="{$uid}">
				<tbody>
					<tr>
						<td>
							<div class="explain_col">
								<input name="starttime" type="text" size="13" id="d4311" onfocus="WdatePicker({maxDate:'#F{ $dp.$D(\'d4312\')}'})" class="input-text Wdate" value="{$starttime}" readonly>
								至
								<input name="endtime" type="text" size="13" id="d4312" onfocus="WdatePicker({minDate:'#F{ $dp.$D(\'d4311\')}'})" class="input-text Wdate" value="{$endtime}" readonly>
								备注信息
								<input name="keyword" type="text" class="input-text" size="20" value="{$keyword}">
								<input type="submit" class="btn" value="搜索" />
							</div>
						</td>
					</tr>
				</tbody>
			</table>

		</form>


		<div class="J_tablelist table_list">

			<table width="100%" cellspacing="0">

				<thead>
					<tr>
						<th align="left">时间</th>
						<th align="left">资金</th>
						<th align="left">类型</th>
						<th align="left">备注信息</th>
					</tr>
				</thead>

				<form action="" id="myform">
				<input type="hidden" name="state" value="1" id="state">
					<tbody>
						{volist name="list" id="vo"}
						<tr>
							<td>{$vo['time']|date="Y-m-d H:i:s"}</td>
							<td>{$vo['cash']}</td>
							<td>{$vo['cat']|get_cash_rtn}</td>
							<td>{$vo['info']}</td>
						</tr>
						{/volist}

						{empty name="list"}
						<tr>
							<td colspan="4" align="center">暂无数据 !</td>
						</tr>
						{/empty}
					</tbody>
				</form>

			</table>

		</div>


		<div class="btn_wrap_fixed">
			<div id="pages">{$res|raw}</div>
		</div>

    </div>

{include file="pub:footer" /}
